package com.gitee.sop.layui.adminserver.module.background.system.api.service.param;

import com.gitee.easyopen.doc.annotation.ApiDocField;
import com.gitee.sop.layui.adminserver.module.background.system.api.isv.param.PageParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @author admin
 */
@Getter
@Setter
public class RouteSearchParam extends PageParam {
    @ApiDocField(description = "服务名serviceId")
    @NotBlank(message = "serviceId不能为空")
    private String serviceId;

    @ApiDocField(description = "路由id")
    private String id;

    @ApiDocField(description = "是否授权接口，1：是")
    private Integer permission;

    @ApiDocField(description = "是否需要token接口，1：是")
    private Integer needToken;

    @ApiDocField(description = "状态，0：待审核，1：启用，2：禁用")
    private Byte status;
}
